﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="GetData.aspx.cs" MasterPageFile="~/Site.master"
    Inherits="posttracker.GetData" %>

<%@ Register Src="~/Controls/ControlDisplyingData.ascx" TagName="ControlDisplyingData"
    TagPrefix="tmp" %>
<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
    <title></title>
    <script src="Scripts/jquery-1.4.1.js" type="text/javascript"></script>
    <script type="text/javascript">

        function find1() {
            var id = $("#TextBox1").val();
            $.getJSON("http://localhost:10702/MesService.svc/getMessagesJson?userId=" + id,
                function (data) {
                    // On success, 'data' contains a list of products.
                    $.each(data, function (key, val) {

                        // Format the text to display.
                        var str = val.Name + ': $' + val.PlaceName;

                        // Add a list item for the product.
                        $('<li/>', { text: str })
                        .appendTo($('#products'));
                    });

                });
        }
    </script>
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <div style="height: 147px">
        <tmp:ControlDisplyingData runat="server" ID="test"></tmp:ControlDisplyingData>
        <!--<input type="button" value="Search" onclick="find1();" />-->

        

        &nbsp;
    </div>
</asp:Content>
